@section('nav')

    <!--sidebar nav start-->
    <ul class="nav nav-pills nav-stacked custom-nav">
        <li class=""><a href="/"><i class="fa fa-home"></i><span>首页</span></a>
        <li class="menu-list {{ active_class(if_route_pattern(['users.*','role.*'])) }}"><a href=""><i class="fa fa-group"></i>
                <span>后台管理</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['users.*'])) }}"><a href="{{ route('users.index') }}"> 账号设置</a></li>
                <li class="{{ active_class(if_route_pattern(['role.*'])) }}"><a href="{{ route('role.index') }}">角色管理</a></li>
            </ul>
        </li>
        <li class="menu-list {{ active_class(if_route_pattern(['customer.*'])) }}"><a href=""><i class="fa fa-male"></i> <span>用户管理</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['customer.*'])) }}"><a href="{{ route('customer.index') }}"> 微信用户</a></li>
            </ul>
        </li>
        <li class="menu-list {{ active_class(if_route_pattern(['teacher.*','category.*','video.*'])) }}"><a href=""><i class="fa fa-book"></i> <span>课程管理</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['teacher.*'])) }}"><a href="{{ route('teacher.index') }}"> 教师设置</a></li>
                <li class="{{ active_class(if_route_pattern(['category.*'])) }}"><a href="{{ route('category.index') }}"> 分类设置</a></li>
                <li class="{{ active_class(if_route_pattern(['video.*'])) }}"><a href="{{ route('video.index') }}"> 课程设置</a></li>
            </ul>
        </li>

        <li class="menu-list {{ active_class(if_route_pattern(['top.teacher','orders.*'])) }}"><a href=""><i class="fa fa-signal"></i> <span>统计管理</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['top.teacher'])) }}"><a href="{{ route('top.teacher') }}"> 销售榜单</a></li>
                <li class="{{ active_class(if_route_pattern(['orders.*'])) }}"><a href="{{ route('orders.index') }}"> 订单管理</a></li>
            </ul>
        </li>
        <li class="menu-list {{ active_class(if_route_pattern(['media.*'])) }}"><a href=""><i class="fa fa-folder"></i> <span>文件系统</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['media.*'])) }}"><a href="{{ route('media.index') }}"> 视频管理</a></li>
            </ul>
        </li>
        <li class="menu-list {{ active_class(if_route_pattern(['qi-niu-config.*','advertisement.*','wechat.*','about.*'])) }}"><a href=""><i class="fa fa-gears"></i> <span>系统设置</span></a>
            <ul class="sub-menu-list">
                <li class="{{ active_class(if_route_pattern(['qi-niu-config.*'])) }}"><a href="{{ route('qi-niu-config.index') }}"> 云纯存储</a></li>
                <li class="{{ active_class(if_route_pattern(['wechat.*'])) }}"><a href="{{ route('wechat.create') }}"> 微信配置</a></li>
                <li class="{{ active_class(if_route_pattern(['advertisement.*'])) }}"><a href="{{ route('advertisement.index') }}"> 广告设置</a></li>
                <li class="{{ active_class(if_route_pattern(['about.*'])) }}"><a href="{{ route('about.create') }}"> 关于我们</a></li>
            </ul>
        </li>
        <li>
            <form action="{{ route('logout') }}" method="POST" class="form-horizontal ">
                @csrf
                <button  class="btn btn-primary" style="padding-left: 20px;border: none;width: 100%;text-align: left;line-height: 32px;"  type="submit">
                    <i class="fa fa-sign-in"></i>
                    <span>退出登录</span>
                </button>
            </form>

        </li>

    </ul>
    <!--sidebar nav end-->
@endsection